package com.chixing.day03_oop;

public class Student {
   private int stuId;
   private String stuName;

   //默认省略
   public Student(){
       System.out.println("无参构造函数constructor");
   }

   //有参构造函数
   public Student(int id,String name){
       this.stuId = id;
       this.stuName = name;

   }
    public int getStuId() {
        return stuId;
    }

    public void setStuId(int stuId) {
        this.stuId = stuId;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }
}
